package main

func main() {

}
func distributeCandies(candyType []int) int {
	m := map[int]int{}
	for _, candy := range candyType {
		m[candy]++
	}
	kind := len(m)
	n := len(candyType) / 2
	if kind < n {
		return kind
	} else {
		return n
	}
}
